package com.lagou.demo.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 定义Student实体类来保存学生类信息
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 2657467257765453350L;
    private int id;
    private String name;
    private String sex;
    private Date birthday;
    private String email;
    private String comments;
    private int classNumber;

    public Student() {

    }

    public Student(int id, String name, String sex, Date birthday, String email, String comments, int classNumber) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.classNumber = classNumber;
    }

    public Student(String name, String sex, Date birthday, String email, String comments, int classNumber) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.comments = comments;
        this.classNumber = classNumber;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public int getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(int classNumber) {
        this.classNumber = classNumber;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                ", comments='" + comments + '\'' +
                ", className='" + classNumber + '\'' +
                '}';
    }
}
